﻿/**
 * 
 * @file OperPropTreeEvent.h
 * @brief 物理属性菜单点击事件处理器 
 * @author LiBaojun (libaojunqd@foxmail.com)
 * @date 2024-10-18
 * 
 */
#ifndef _OPER_TERR_EVENT_OPER__H___
#define _OPER_TERR_EVENT_OPER__H___

#include "OperatorsInterface/TreeEventOperator.h"

//namespace EventOper
//{
//    class WidgetBrowserTableInterfaceOperator;
//}

namespace GUIOper
{
    /**
     * @brief 物理属性菜单点击事件处理器
     * @author LiBaojun (libaojunqd@foxmail.com)
     * @date 2024-10-18
     */
    class  OperatorPropTreeEvent : public Oper::TreeEventOperator
    {
    public:
        /**
         * @brief Construct a new Operator Prop Tree Event object
         * @author LiBaojun (libaojunqd@foxmail.com)
         * @date 2024-10-18
         */
        explicit OperatorPropTreeEvent() = default;
        /**
         * @brief Destroy the Operator Prop Tree Event object
         * @author LiBaojun (libaojunqd@foxmail.com)
         * @date 2024-10-18
         */
        virtual ~OperatorPropTreeEvent() = default;
        /**
         * @brief 树形菜单点击事件
         * @param[i]  item           树形节点
         * @param[i]  colum          点击列号
         * @author LiBaojun (libaojunqd@foxmail.com)
         * @date 2024-10-18
         */
        virtual void itemClicked(QTreeWidgetItem* item, int colum) override;
        /**
         * @brief 树形菜单双击事件
         * @param[i]  item           树形节点
         * @param[i]  colum          点击列号
         * @author LiBaojun (libaojunqd@foxmail.com)
         * @date 2024-10-18
         */
        virtual void itemDouleClicked(QTreeWidgetItem* item, int colum) override;
//     protected:
//     private:
//         EventOper::WidgetBrowserTableInterfaceOperator* _oldOperatpr{};

    };
    Register2FITKOperatorRepo(OperPropTreeEvent, OperatorPropTreeEvent);
}


#endif
